package Jiami;

import cn.hutool.core.util.CharsetUtil;
import cn.hutool.core.util.HexUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.asymmetric.KeyType;
import cn.hutool.crypto.asymmetric.RSA;

/**
 * @Author: GodChin
 * @Date: 2021/8/17 9:31
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        String mima="i+1SxHJGF0/4oyXvTegT6ay7ePyDOOOpi6cpG8qfC1ZY3dOAApB3Jq+EaYsjgHAM86YVhGOhZzhR+YOeA50peaMhWkGuhPbQ7oYZuzcyF8F1AzGkCxDHZDLiG+ZtdY9p51keVgQ+jWPHw7tjKYLKsTCFDuOi1zcBR8f3V9djoKM=";
        RSA rsa = new RSA();
//        rsa.decrypt(, KeyType.PublicKey);
//        System.out.println(StrUtil.str(encrypt2, CharsetUtil.UTF_8));
        byte[] bytes = HexUtil.decodeHex(mima);
        byte[] decrypt = rsa.decrypt(bytes, KeyType.PublicKey);
        System.out.println(StrUtil.str(decrypt,CharsetUtil.UTF_8));
    }
}
